<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <title></title>
    <base href="<%=basePath%>">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0"> 
 	<%@ include file="/common/importJsCss.jsp" %>
 	<script type="text/javascript" src="js/moment/moment.min.js"></script>
 	<script type="text/javascript" id="preJavascript">
$(function(){
	var day = moment("12/25/1995", "MM-DD-YYYY");
	out("day.toDate()",day.toDate());
	out("day.year()",day.year());
	out("day.month()",day.month());
	out("day.day()",day.day());
});
	</script>
  </head>  
  <body>
  	<div class="container">
  	  	<div class="page-header">
         	<h2>时间格式化</h2>
      	</div>
<pre class="prettyprint linenums"></pre>

  	</div>	
  </body>
</html>
